package com.minyon_web_admin.shiro.bean;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.UnavailableSecurityManagerException;
import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apache.shiro.session.InvalidSessionException;
import org.apache.shiro.subject.Subject;

import com.minyon_web_admin.model.SysMenuBean;
import com.minyon_web_admin.model.SysRoleBean;

/**
 * shiro Principal信息.
 * 
 * @author wwy
 */
public class LoginUser implements java.io.Serializable {
    private String userId;
	private String loginName;
    private String name;
    private String mobile;
	private List<SysMenuBean> permissionInfo;
	private List<SysRoleBean> roleInfo;
	private SimpleAuthorizationInfo authorization;
	private Map<String, Object> cacheMap;
	private static final long serialVersionUID = 1L;
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public List<SysMenuBean> getPermissionInfo() {
		return permissionInfo;
	}
	public void setPermissionInfo(List<SysMenuBean> permissionInfo) {
		this.permissionInfo = permissionInfo;
	}
	public SimpleAuthorizationInfo getAuthorization() {
		return authorization;
	}
	public void setAuthorization(SimpleAuthorizationInfo authorization) {
		this.authorization = authorization;
	}
	public Map<String, Object> getCacheMap() {
		if (cacheMap==null){
			cacheMap = new HashMap<String, Object>();
		}
		return cacheMap;
	}
	public void setCacheMap(Map<String, Object> cacheMap) {
		this.cacheMap = cacheMap;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public List<SysRoleBean> getRoleInfo() {
		return roleInfo;
	}
	public void setRoleInfo(List<SysRoleBean> roleInfo) {
		this.roleInfo = roleInfo;
	}
 
}
